﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Data;
namespace BUS
{
    public static class LopHocBUS
    {
        public static List<LopDTO> LayDanhSach()
        {
            return LopHocDAO.LayDanhSach();
        }

        public static DataTable GetAllKhoi()
        {
            return LopHocDAO.GetAllKhoi();
        }

        public static DataTable GetAllLopHoc()
        {
            return LopHocDAO.GetAllLopHoc();
        }

        public static bool AddNewLop(LopDTO lop)
        {
            return LopHocDAO.AddNewLop(lop);
        }

        public static bool Delete(string id)
        {
            return LopHocDAO.Delete(id);
        }

        public static Boolean Update(LopDTO lop)
        {
            return LopHocDAO.Update(lop);
        }

        public static List<LopDTO> LayDanhSachTheoKhoi(string idKhoi)
        {
            return LopHocDAO.LayDanhSachTheoKhoi(idKhoi);
        }
    }
}
